﻿@namespace BlazorComponent
@typeparam TValue
@inherits BInputAppendSlot<TValue, ITextField<TValue>>

@if (AppendOuterContent != null || !string.IsNullOrWhiteSpace(AppendOuterIcon))
{
    var childContent = (RenderFragment?)null;

    if (AppendOuterContent != null)
    {
        childContent = AppendOuterContent;
    }
    else if (AppendOuterIcon != null)
    {
        childContent = RenderPart(typeof(BInputIcon<,>), "append-outer-icon", AppendOuterIcon, HandleOnAppendOuterClickAsync, arg0Name: "Type", arg1Name: "Icon", arg2Name: "OnClick");
    }

    @RenderPart(typeof(BInputSlot<,>), "append", "outer", childContent, arg0Name: "Type", "Location")
}
